<template>
  <div id="app" class="main" v-loading="loading">
    <keep-alive exclude="UploadTabs">
      <transition name="slide-left">
        <router-view></router-view>
      </transition>
    </keep-alive>
  </div>
</template>
<script>
import bus from "./bus/bus.js";
export default {
  created() {
    // this.$http.defaults.headers['authorization'] = this.$store.state.token
    this.$http.defaults.headers["Access-Control-Allow-Oriain"] = "*";
    bus.$on("loading", this.isloading);
  },
  data() {
    return {
      loading: false,
    };
  },
  methods: {
    isloading() {
      let that = this;
      that.loading = true;
      setTimeout(() => {
        that.loading = false;
      }, 1000);
    },
  },
};
</script>
<style>
@import url("assets/base.css");
</style>
